package org.gten.gegedexin.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.javassist.runtime.Inner;
import org.gten.gegedexin.pojo.DraftPojo;

import java.util.List;

/**
 * @author Eric
 * @date 2023/6/29
 */

@Mapper
public interface DraftDao extends BaseMapper<DraftPojo> {
    @Select("SELECT MAX(draft_id) FROM draft")
    Integer getValidInfoId();

    @Select("SELECT * FROM draft WHERE sender = #{sender}")
    List<DraftPojo> getDraftBySender(String sender);
}

